Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ee licensed replay transformer #18874

Merged
merged 49 commits into from
Nov 29, 2023

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Nov 23, 2023

first pass through using the EE licensed replay transformer in playback

Copy link
Contributor

github-actions bot commented Nov 23, 2023

Size Change: 0 B

Total Size: 1.83 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.83 MB

compressed-size-action

@benjackwhite benjackwhite self-requested a review November 24, 2023 10:22
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@benjackwhite benjackwhite removed their request for review November 27, 2023 14:02
@pauldambra pauldambra marked this pull request as ready for review November 28, 2023 09:13
@pauldambra pauldambra requested a review from a team November 28, 2023 09:14
Comment on lines +5 to +12
return import('../../../ee/frontend/exports')
.then((ee) => {
return ee.default()
})
.catch(() => {
return {
enabled: false,
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the really key change for the ee bundler @benjackwhite

(although even this is reversible)

I couldn't find an esbuild option that looked like it would include this code even if unreferenced. I guess we could mark it as external and then bundle it separately, but that felt less intention revealing than this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

Copy link
Contributor

@daibhin daibhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments but it's probably worth someone else also taking a look given everything in this PR I have little context on

.github/workflows/ci-frontend.yml Outdated Show resolved Hide resolved
.run/PostHog.run.xml Show resolved Hide resolved
jest.config.ts Outdated Show resolved Hide resolved
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks solid!

Comment on lines +5 to +12
return import('../../../ee/frontend/exports')
.then((ee) => {
return ee.default()
})
.catch(() => {
return {
enabled: false,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

@pauldambra pauldambra merged commit 1632395 into master Nov 29, 2023
78 checks passed
@pauldambra pauldambra deleted the feat/add-ee-licensed-replay-transformer branch November 29, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants